package com.ycsj.goldmedalnewconcept.conversationphoto;

import io.rong.imkit.RongContext;
import io.rong.imkit.widget.provider.InputProvider;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.HandlerThread;
import android.view.View;
import android.widget.Toast;
import com.ycsj.goldmedalnewconcept.R;

public class PhotoCollectionsProvider extends InputProvider.ExtendProvider {
	HandlerThread mWorkThread;
	Handler mUploadHandler;
	private int REQUEST_CONTACT = 20;
	public PhotoCollectionsProvider(RongContext context) {
		super(context);
		 mWorkThread = new HandlerThread("RongDemo");
		  mWorkThread.start();
		  mUploadHandler = new Handler(mWorkThread.getLooper());
	}
	
	
	/**
	* 设置展示的图标
	* @param context
	* @return
	*/
	@SuppressWarnings("deprecation")
	@Override
	public Drawable obtainPluginDrawable(Context context) {
		// TODO Auto-generated method stub
		return  context.getResources().getDrawable(R.drawable.ic_launcher);
	}

	
	/**
	* 设置图标下的title
	* @param context
	* @return
	*/
	@Override
	public CharSequence obtainPluginTitle(Context context) {
		// TODO Auto-generated method stub
		return "图片";
	}
	/**
	* click 事件
	* @param view
	*/
	@Override
	public void onPluginClick(View arg0) {
		Toast.makeText(getContext(), "图片", 0).show();
	}

}
